![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Numbro is a JavaScript library for formatting and manipulating numbers. It provides a wide range of functionalities including number formatting, currency formatting, and parsing numbers from strings.
Number Formatting
This feature allows you to format numbers with various options such as decimal places, thousand separators, and more.
const numbro = require('numbro');
console.log(numbro(1000.234).format('0,0.00')); // '1,000.23'
Currency Formatting
This feature allows you to format numbers as currencies, including options for thousand separators and decimal places.
const numbro = require('numbro');
console.log(numbro(1000.234).formatCurrency({ thousandSeparated: true, mantissa: 2 })); // '$1,000.23'
Parsing Numbers
This feature allows you to parse formatted number strings back into JavaScript numbers.
const numbro = require('numbro');
console.log(numbro().unformat('1,000.23')); // 1000.23
Numeral.js is a library for formatting and manipulating numbers. It offers similar functionalities to numbro, such as number formatting, currency formatting, and parsing. However, numbro provides additional features like locale support and more advanced formatting options.
Accounting.js is a lightweight JavaScript library for number, money, and currency formatting. While it offers basic formatting functionalities similar to numbro, it lacks some of the advanced features and flexibility that numbro provides.
Currency.js is a library focused on handling and formatting currency values. It provides a more specialized set of features for currency manipulation compared to numbro, which offers a broader range of number formatting options.
A javascript library for formatting and manipulating numbers.
Please submit all pull requests to the develop
branch.
Fork the library
Run npm install
to install dependencies
Add your tests to the files in /tests
To test your tests, run grunt test
When all your tests are passing, submit a pull request to the develop
branch.
Languages names follows the Microsoft culture name convention as found
here. If Microsoft does not have a code
for the country/locale combination, use the format lang-locale
where the language code is a 2
letter abbreviation from the list of ISO 639-1 language
codes and the localecode
is from the list
of ISO 3166-1 country codes
See the english unit tests for an example.
See CHANGELOG.md.
numbro
is forked from Adam Draper's project
Numeral.js, which was in turn inspired by and heavily borrowed from
Moment.js.
Copyright © 2014 Adam Draper Copyright © 2015-2017 Företagsplatsen AB
Copyright © 2017 Benjamin Van Ryseghem
Distributed under the MIT license. If you want to know more, see the LICENSE
file.
The original license file for Numeral.js
can be found in LICENSE-Numeraljs
1.11.1
FAQs
Format and manipulate numbers.
The npm package numbro receives a total of 233,410 weekly downloads. As such, numbro popularity was classified as popular.
We found that numbro demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.